#include <stdio.h>

int Add(int x, int y) {
    return x + y;
}

int Sub(int x, int y) {
    return x - y;
}


int Mul(int x, int y) {
    return x * y;
}

int Div(int x, int y) {
    return x / y;
}

int main() {
    //初始化函数指针数组
    int (*pf[4])(int, int) = {Add, Sub, Mul, Div};
    int i = 0;
    for (i = 0; i < 4; i++) {
        int ret = (int) (pf[i](8, 2));
        printf("%d\n", ret);
    }
    return 0;
}
